package com.sise.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zj
 */
@Data
@Accessors(chain = true)
public class OrderMaster implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.ASSIGN_UUID)
    private String orderId;

    /**
     * 微信用户唯一标识
     */
    @TableField("open_id")
    private String openId;

    /**
     * 商铺id
     */
    @TableField("store_id")
    private Integer storeId;

    /**
     * 收货人姓名
     */
    @TableField("receiver_name")
    private String receiverName;

    /**
     * 收货人性别，保密，先生，女士。默认保密
     */
    @TableField("receiver_gender")
    private String receiverGender;

    /**
     * 收货人电话
     */
    @TableField("receiver_phone")
    private String receiverPhone;

    /**
     * 收货人地址(宿舍号)
     */
    @TableField("receiver_address")
    private String receiverAddress;

    /**
     * 订单总金额
     */
    @TableField("total_order_amount")
    private BigDecimal totalOrderAmount;

    /**
     * 订单状态，0：待付款，1：已付款，2：已发货，3：订单完成，4：订单取消，5：退款
     */
    @TableField("order_status")
    private Integer orderStatus;

    /**
     * 订单评分
     */
    @TableField("order_score")
    private BigDecimal orderScore;

    /**
     * 订单评价状态，0：未评价，1：仍有商品未评价，2：已评价
     */
    @TableField("order_evaluate_status")
    private Integer orderEvaluateStatus;

    /**
     * 订单创建时间
     */
    @TableField("create_time")
    private Date createTime;
}
